package com.hl.sfzy.entity.content;

import java.time.LocalDateTime;
import com.fasterxml.jackson.annotation.JsonFormat;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@Builder
@AllArgsConstructor
/**
 * @className: Article
 * @description: 文章实体类
 * @param: articleId 文章id
 * @param: articleName 文章名称
 * @param: articleIntro 文章简介
 * @param: tabularChart 文章图表
 * @param: articleDetail 文章详情
 * @param: readQuantity 阅读量
 * @param: collects 收藏量
 * @param: articleType 文章类型
 * @param: createTime 创建时间
 * @param: lastUpdateTime 最后更新时间
 * @return: Article
 */
public class Article {
    public Long articleId;
    public String articleName;
    public String articleIntro;
    public String tabularChart;
    public String articleDetail;
    public Integer readQuantity;
    public Integer collects;
    public ArticleType articleType;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    public LocalDateTime lastUpdateTime;
    public Integer status;
}
